<template>
  <div>
    <el-input v-model="articleTitle" placeholder="请输入内容"></el-input>
    <el-input v-model="articleContent" placeholder="请输入内容"></el-input>
    <el-input
      v-model="articleClassification"
      placeholder="请输入内容"
    ></el-input>
    <el-button type="primary" @click="updateArticle()">修改文章</el-button>
  </div>
</template>

<script>
export default {
  name: "UpdateArtide",
  data() {
    return {
      articleTitle: "",
      articleContent: "",
      articleClassification: "",
    };
  },
  methods: {
    updateArticle() {
      let _this = this;
      this.axios({
        method: "post",
        url: this.$constant.url + "/article/updateAllArticle",
        data: {
          articleTitle: this.articleTitle,
          articleContent: this.articleContent,
          articleClassification: this.articleClassification,
        },
      }).then((response)=>{
          console.log(response.data);
      });
    },
  },
};
</script>

<style>
</style>